package com.yao.shop.service;

import com.yao.shop.common.Page;
import com.yao.shop.pojo.Dto.OrderDto;
import com.yao.shop.pojo.ShopOrder;
import com.yao.shop.pojo.ShopOrderHistory;
import com.yao.shop.pojo.vo.ShopOrderVo;

import java.util.List;

public interface ShopOrderService {
    ShopOrder createOrder(OrderDto orderDto);

    void receiveById(Long id);

    ShopOrderVo get(Long id);

    Page<ShopOrderVo> getMyOrder(Page<ShopOrderVo> page);

    void payById(Long id);

    Page<ShopOrder> getByPage(Page<ShopOrder> page);

    void changeOrderStatus(ShopOrder order);

    List<ShopOrderHistory> getHistory(Long id);
}
